package com.example.demo.model;

import java.util.Date;
import java.util.List;

public class City {
    private Long id;
    private String name;
    private String country;
    private String description;
    private String highlights;
    private Integer recommendedDays;
    private Date createTime;
    private Date updateTime;
    private List<CityImage> images;

    public City() {
        this.createTime = new Date();
        this.updateTime = new Date();
    }

    public City(String name, String country, String description, String highlights, Integer recommendedDays) {
        this();
        this.name = name;
        this.country = country;
        this.description = description;
        this.highlights = highlights;
        this.recommendedDays = recommendedDays;
    }

    // Getter和Setter方法
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getCountry() { return country; }
    public void setCountry(String country) { this.country = country; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public String getHighlights() { return highlights; }
    public void setHighlights(String highlights) { this.highlights = highlights; }

    public Integer getRecommendedDays() { return recommendedDays; }
    public void setRecommendedDays(Integer recommendedDays) { this.recommendedDays = recommendedDays; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }

    public List<CityImage> getImages() { return images; }
    public void setImages(List<CityImage> images) { this.images = images; }
}